<?php
require_once('contenu/loader.php');
$contenu = loadPage($page);
$contenu->selectionnerTemplate($tpl);
$TPLN = new TPLN;
$TPLN->CreateVirtualTemplate("{header}{contenu}{footer}");
$TPLN->Parse("contenu",$contenu->_getXhtml());
$TPLN->IncludeFile("header","environnement/{$environnement}/header.php"); 
$TPLN->IncludeFile("footer","environnement/{$environnement}/footer.php");
$TPLN->Write();
?>